<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>企业信息</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
  <!-- 解决页面加载瞬间出现双花括号问题 -->
  <style>
    [v-clock] {
      display: none;
    }

    .span {
      display: block;
      width: 250px;
      height: 40px;
      line-height: 40px;
      font-size: 14px;
    }
    .el-input .el-input__inner ,.el-input.is-disabled .el-input__inner ,
    .el-textarea .el-textarea__inner ,.el-textarea.is-disabled .el-textarea__inner{
      color: #000;
      background-color: #ffffff00;
    }
  </style>
</head>

<body>
  <div id="app" v-clock class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <el-input v-model="form.ID_Name" placeholder="请输入账号名称" @keyup.enter="onSerach"/>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSerach">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" stripe border height="calc(100vh - 140px)"
      style="width: 100%">
      <el-table-column align="center" type="index" label="序号" width="50"></el-table-column>
      <el-table-column align="center" prop="Enterprise_Logo" label="企业logo">
        <template v-slot="{row}">
          <div v-if="row.Enterprise_Logo != ''">
            <el-image :src="DomainIMG + row.Enterprise_Logo"></el-image>
          </div>
          <div v-else>
            暂无logo
          </div>
        </template>
      </el-table-column>
      <el-table-column align="center" prop="Enterprise_Name" label="企业名称"></el-table-column>
      <el-table-column align="center" prop="Tax_Number" label="营业执照编码"></el-table-column>
      <el-table-column align="center" prop="Enterprise_Type" label="企业类型">
        <template v-slot="{row}">
            {{row.Enterprise_Type=='1'?'企业':'个人'}}
        </template>
      </el-table-column>
      <el-table-column align="center" prop="Enterprise_Address" label="企业地址"></el-table-column>
      <el-table-column align="center" label="操作" width="300">
        <template v-slot="{row}">
          <el-button v-if="$.cookie('enterprise')!='1'" size="mini" icon="el-icon-menu" @click="handle(row.Enterprise_Info_SerialNumber)">查看</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
        :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
        layout="total, sizes, prev, pager, next, jumper" :total="total">
      </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="../../../js/ID_Validity.js"></script>
  <script type="text/javascript" src="../../../js/compressor.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.min.js"></script>
  <script type="text/javascript" src="../../../js/FileSaver.js"></script>
  <script type="text/javascript" src="../../../js/xlsx.full.min.js"></script>
  <script type="text/javascript" src="./js/Business1.js"></script>
</body>

</html>